package common;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class ReStartService extends BroadcastReceiver {

	public static String ACTION_RESTART_PERSISTENTSERVICE = "com.ming.inthefridge.ReStartService.receive";
	@Override
	public void onReceive(Context context, Intent intent) {
		Log.d("ReStartService", "ReStartService called!!");
		if(intent.getAction().equals(ACTION_RESTART_PERSISTENTSERVICE)){
			Intent i = new Intent(context, DdayService.class);
			context.startService(i);
		}
	}
}
